gtk-demo: Fix the sidebar demo
authorMatthias Clasen <mclasen@redhat.com>
Fri, 8 Feb 2019 23:27:56 +0000 (18:27 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 10 Feb 2019 23:43:59 +0000 (18:43 -0500)
It was still using child properties.

demos/gtk-demo/sidebar.c

index 5ec3d16fd055b563e59bec20467b8bc0d65551af..d5732cec6953486f8e1afc48e56e112e12cfced2 100644 (file)
@@ -73,7 +73,7 @@ do_sidebar (GtkWidget *do_widget)
               widget = gtk_label_new (c);
             }
           gtk_stack_add_named (GTK_STACK (stack), widget, c);
-          gtk_container_child_set (GTK_CONTAINER (stack), widget, "title", c, NULL);
+          g_object_set (gtk_stack_get_page (GTK_STACK (stack), widget), "title", c, NULL);
         }
 
        gtk_container_add (GTK_CONTAINER (window), box);